
import numpy as np

def fun1():
    a = np.array([1, 2, 3])
    print(a)

# 多于一个维度
def fun2():
    a = np.array([[1, 2], [3, 4]])
    print(a)

# 最小维度
def fun3():
    a = np.array([1, 2, 3, 4, 5], ndmin=2)
    print(a)

# dtype参数
def fun4():
    a = np.array([1, 2, 3], dtype=complex)
    print(a)

if __name__ == '__main__':
    fun4()